var express = require('express');
var router = express.Router();
var { getAllMessage,getMessageState,getUpdateMessage,getUpdateOperatorMessage,getUpdateOperatorMessageById,delteMsgById} = require('../controller/messageController')

// /message
router.get('/',getAllMessage);
router.get('/state',getMessageState);
router.post('/update',getUpdateMessage);
router.post('/update_operator',getUpdateOperatorMessage);
router.post('/update_operator_byid',getUpdateOperatorMessageById);
router.post('/delete', delteMsgById)

module.exports = router;
